<?php foreach($tests as $class=>$tests): ?>
  <b><?php echo $class; ?></b><br/>
  <?php foreach($tests as $test): ?>
  <a href='javascript:void(0)' onclick='mainMenu.showAllTests(<?php echo $test['id']?>);' style='text-decoration:none;'>
  <span class='text'><?php echo $test->getReadableTestName() ?></span>
  &nbsp;&nbsp;&nbsp;&nbsp;
  <span class='test-<?php echo $test['result'] ?>'>
    <?php echo $test['result'] ?>
  </span>
  <br/>

  </a>
  <?php endforeach; ?>
<?php endforeach; ?>